<%@ include file="/taglibs.jsp"%>

<head>
    <title>
    <c:if test="${empty param.id}">
    	<fmt:message key="departmentForm.add.title"/>
    </c:if>
    <c:if test="${not empty param.id}">
    	<fmt:message key="departmentForm.edit.title"/>
    </c:if>
    </title>
</head>

<p><fmt:message key="detailForm.header"/></p>
  
<s:form name="departmentForm" action="saveDepartment" method="post" validate="true">
<s:hidden name="department.id" value="%{department.id}"/>

<tr>
	<td>
		<s:text name="department.name"></s:text>
        <span class="required">*</span>:
    </td>
    <td>
    	<s:textfield maxlength="40" name="department.name" required="true" size="50" theme="simple"/>
    </td>
</tr>
<s:textarea maxlength="300" key="department.function" cols="50" rows="7"></s:textarea>
<s:textarea maxlength="300" key="department.task" cols="50" rows="7"></s:textarea>
<%@ include file="/common_functions.jsp"%>

</s:form>

